﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>趣+商家后台管理系统 - 登录</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link href="/Content/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Content/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/Content/css/animate.min.css" rel="stylesheet">
    <link href="/Content/css/style.min.css" rel="stylesheet">
    <link href="/Content/css/login.min.css" rel="stylesheet">
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if (window.top !== window.self) { window.top.location = window.location };
    </script>

</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row" style="border:1px #cdcdcd solid;padding:20px;">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <h1>[ 趣+尚品 ]</h1>
                    </div>
                    <div class="m-b"></div>
                    <h4>欢迎使用 <strong>趣+商家后台管理系统</strong></h4>
                    <ul class="m-b">
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs">商家后台登陆</i></li>
                    </ul>
                </div>
            </div>
            <div class="col-sm-5" style="border-left:1px #ccc solid;">
                <form>
                    <h4 class="no-margins">商家登录</h4>
                    @*<p class="m-t-md">登录到后台管理系统</p>*@
                    <input type="text" id="userName" class="form-control uname" placeholder="用户名" />
                    <input type="password" id="Password" class="form-control pword m-b" placeholder="密码" />
                    <button class="btn btn-success btn-block" onclick="userLogin()" type="button">登录</button>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2018 All Rights Reserved. 六合一道技术团队
            </div>
        </div>
    </div>
    <script src="/Content/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Content/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/Content/plugins/layer/layer.min.js"></script>
    <script src="/Content/js/common.js"></script>
    <script type="text/javascript">
        function userLogin() {
            var _username = $("#userName").val();
            var _pwd = $("#Password").val();
            if (_username == "") {
                layer.msg("请输入用户名", { time: 1200 }); return;
            }
            if (_pwd == "") { layer.msg("请输入密码", { time: 1200 }); return; }
            ajax("/bfp_account/login", { username: _username, password: _pwd }, function (data) {
                if (data.code == 1) {
                    layer.msg("登陆成功", { time: 1200 }, function () { location.href = "/Home/index"; })
                } else { layer.msg(data.msg, { time: 1200 }) };
            });
        }
    </script>
</body>
</html>
